<%@ tag language="java" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ attribute name="categoryList" type="java.util.List" required="true" description="栏目列表"%>
<c:forEach items="${categoryList}" var="category">
  	<c:if test="${category.site.siteCode eq site.siteCode}">
		<li class="${requestScope.category.categoryCode eq category.categoryCode ?'menu_activ':''}">
		<c:choose><c:when test="${fn:length(category.categoryName) gt 12}">
			<a href="${category.url}" target="${category.target}" style="line-height:16px;padding-top:3px;">${category.categoryName}</a>
		</c:when><c:otherwise>
			<a href="${category.url}" target="${category.target}" ${fn:length(category.categoryName) gt 10?'style="font-size:12px;"':''}>${category.categoryName}</a>
		</c:otherwise></c:choose></li>
	</c:if>
</c:forEach>